<!DOCTYPE html>
<%@page pageEncoding="UTF-8" contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="EF" uri="/WEB-INF/framework/tlds/EF-2.0.tld" %>
<%String actionUrl = request.getContextPath() + "/DispatchAction.do";%>
<html>
<EF:EFHead includeDefault="true">
<script type="text/javascript" src="./ZM/zm.js"></script>
</EF:EFHead>
<EF:EFBody>
	<EF:EFForm formId="ZMCN40" method="POST" action="<%=actionUrl%>"> 
		
		<div id = "ef_region_inqu" title="查询条件" efRegionShowClear=true efRegionSave=true>
			<EF:EFInput type="hidden" cname="后台年份" blockId="inqu_status" ename="year" row="0" />
			<EF:EFInput type="hidden" cname="后台月份" blockId="inqu_status" ename="month" row="0" />
		    <div class="row-fluid"> 
				<div class="span4">
					<EF:EFInput blockId="inqu_status" row="0" type="text" ename="fdYear" cname="年份：" etc=" style='width:133px;'"/>
				</div>
				<div class="span4">
					<EF:EFInput blockId="inqu_status" row="0" type="text" ename="fdMonth" cname="月份：" etc=" style='width:133px;'"/>
				</div>
			</div>
				
			</div> 
		<div id="ef_region_result" title="记录集" style="overflow: scroll">
			<div id="ef_grid_r" title="页面信息" style="overflow: hidden; height: 320px;"></div>
		</div>
		<div id="ef_tab_y" lastRange="98%" eftabWidth="100%" style="overflow: hidden;border-width:0px;padding:0px">
			<div id="tab1" title="内部抽查样" eftabSrc="about:blank" efRemember="yes" style="border:0px;padding:0px"></div>
			<div id="tab2" title="外部抽查样" eftabSrc="about:blank" efRemember="yes" style="border:0px;padding:0px"></div>
			<div id="tab3" title="生产检查样" eftabSrc="about:blank" efRemember="yes" style="border:0px;padding:0px"></div>
			<div id="tab4" title="煤层煤样" eftabSrc="about:blank" efRemember="yes" style="border:0px;padding:0px"></div>
			<div id="tab5" title="煤层减灰样" eftabSrc="about:blank" efRemember="yes" style="border:0px;padding:0px"></div>
			<div id="tab6" title="月综合煤样" eftabSrc="about:blank" efRemember="yes" style="border:0px;padding:0px"></div>
			<div id="tab7" title="月综合减灰样" eftabSrc="about:blank" efRemember="yes" style="border:0px;padding:0px"></div>
			<div id="tab8" title="洗选厂生产样" eftabSrc="about:blank" efRemember="yes" style="border:0px;padding:0px"></div>
			<div id="tab9" title="外部送检样" eftabSrc="about:blank" efRemember="yes" style="border:0px;padding:0px"></div>
			<div id="tab10" title="其他样" eftabSrc="about:blank" efRemember="yes" style="border:0px;padding:0px"></div>
		</div>
		<EF:EFRegion /> 
        <EF:EFGrid blockId="result" paintId="ef_grid_r" serviceName="ZMCN40" queryMethod="query" autoDraw="no" readonly="false"   ajax="true" style="operationBar:true">
			<EF:EFColumn ename="fdKeyId" cname="主键" visible="false" width="80"></EF:EFColumn>
			<EF:EFComboColumn ename="fdYear" cname="*年份" blockName="cmes.cs.year" labelProperty="display" valueProperty="value" align="center" width="100" nullable="false"/>
			<EF:EFComboColumn ename="fdMonth" cname="*月份" blockName="cmes.cs.month" labelProperty="display" valueProperty="value" align="center" width="100" nullable="false"/>
			<%-- <EF:EFComboColumn ename="fdProjectName" cname="*单位名称" blockName="cmes.cp.department" align="center" width="100" labelProperty="orgName" valueProperty="orgCode" nullable="false"/> --%>
        </EF:EFGrid>
 		<EF:EFTab tabId="y" action="fundiv"/> 
		<script type="text/javascript"> 
			var frames = $("#ef_tab_y iframe");
			if(window.parent != window && window.parent.hideSubPageHead == true) {
				$("#ef_tab_y").css("padding-top", "8px").css("padding-left", "4px");
			}
			onSubPageLoad = function(wnd) {
				for(var i=0; i<frames.length; i++) {
					if (frames[i].contentWindow == wnd) {
						adjustFrameHeight(frames[i]);
						break;
					}
				}
			}
			adjustFrameHeight = function(frame) {
				var oldHeight = $(frame).height();
				$(frame).css("border", "0");
				$("#jquery_tab_div_content").css("border", "0");
				var height = frame.contentWindow.document.body.scrollHeight;
				if (height > oldHeight) {
					$(frame).css("height", height);
				}
				if(window.parent != window && window.parent.hideSubPageHead == true) {
					var pFrames = window.parent.frames;
					for(var i=0; i<pFrames.length; i++) {
						if (pFrames[i].contentWindow == window) {
							window.parent.adjustFrameHeight(pFrames[i]);
							break;
						}
					}
				}
			}
			</script>
	</EF:EFForm> 
</EF:EFBody> 
</html>